package com.hanthink.system.service.impl.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hanthink.system.domain.user.User;
import com.hanthink.system.domain.user.UserClockInLog;
import com.hanthink.system.mapper.user.UserMapper;
import com.hanthink.system.service.user.IUserService;

@Service
public class UserServiceImpl implements IUserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public List<User> selectUserList(User user) {

		return userMapper.selectUserList(user);
	}

	@Override
	public List<User> selectUserListOfAutoDistingguish(User user) {

		return userMapper.selectUserListOfAutoDistingguish(user);
	}



	@Override
	public User selectStatusByUser(User user) {
		return userMapper.selectStatusByUser(user);
	}

	@Override
	public boolean updateUserStatus(User user) {
		userMapper.updateUserStatus(user);
		return true;
	}

	@Override
	public List<User> selectRepairUserList(User user) {
		return userMapper.selectRepairUserList(user);
	}

	@Override
	public List<User> selectRepairUserListsj(User user) {
		return userMapper.selectRepairUserListsj(user);
	}

	@Override
	public List<User> selectRepairUserListNoClockin(User user) {

		return userMapper.selectRepairUserListNoClockin(user);
	}

	@Override
	public int insertUserClockInLog(UserClockInLog userClockInLog) {
		return userMapper.insertUserClockInLog(userClockInLog);
	}

}
